for loop script