Replacing the delete in the ZJets class