ruby was getting confused over too many negations - add some brackets to