implemented the invalid message queue