commented out nan? test in on_schedule?