URL output in loops