loop removal