added <EOF> to the end of the messages