priority iteration of messages