prepare timetables