added specs; support grouping by department and salary