representing multiple loops and creating and removing them