cleanup hash