regenerate hash