hash creation cleanup