adding for loop replacement vars