solve for all messages