adding for loop script