added set_schedule method