get the departments