cleaning and add department category to code