update priority value