basic hash working