added getAllDepartments