fix backwards conditional