removes using negation in algorithm