made time_of_day and category dynamic