find priority by id before update