add hash at counterfactuals