change chat function