made loops compacted