use a  simpler hash function