inverted if and removed else