erasing unused code + this chat isnt working properly