changed chat class