update assign priorities logic