make some IF statements easier to read by removing the ~ (not)