more sample looping stuff