change set<Loop> to multiset<Loop>, since Comp is only for loop consistency value