[UPDATE] added the priority processing