Remove outer loop