FIXED THE LOOP