refactored time_slots and appt_slots