updated scheduler
fixed scheduler