scheduler not working