scheduler fully working