initial changes for LOOP