changed for loop indentation