keep reference to previous and next message in message