use setloop interface