Whole for loop should work
fixed merge