chatfunction changes