updated hash mode