made changes to tick after receiving a message and changed message
output