added migration of departments