made changes to timetable.c