cleaned the ChatProtocol and removed unused variables