set priority if it doesn't exist