more updates to loops