final version of chat