update priority