apply war pattern and change staff and dept function