changed joining and leaving groups