fix an implementation of 'schedule_list' from class to function