create setPriority