improve the action of chat