adding scheduler