trying cancel outside of scheduling func