this might now be better written with the if/else clauses switched and a positive check (obviating the need for else at all i guess)