prune operation if it isn't needed