priority scheduling implemented