typo - had logic reversed