functionfy inside of sucess call and prelim schedule function