forgot to re-simplify if statement after debugging