added department mode