sample looping methods