code for timetable fix in place