style, there's a lot of this. whitespace before { and after }, whitespace after if, please