looping works now