working on the chat part