new timetable logic