implement setpriority