Fixing syntax and for loop logic