fixed up priority scheduling