simplify the message check steps