making scheduler errorprof