cleanup hash computation