added timetable functionality