fixing if's indentation