updating departments