fixed formatting on a for loop