using long for department id