implemented the department locations functions