adding for loops