enumeration added to loops