more formatting corrections :: one line for loops and if statements still need {}