add some function in schedule class