changing chat to messageformater