working on scheduler