fix logic reversal in needs_op