update merge function in timetable