modify evironments linked to events