controller modified for new time slots