defining categories for grouping times