limit trap loops