add spaces in for loops