add a space after if, and indent this properly