small chat code change