abandon the loop using interative indices