done on group chat functions