added create and pid for priority_num