eliminate loop