adding for loop code