added regenhash