sheduler finally working