remove negation in check for deletion