add new function to departments