timetable (shit code, but should work)