change hash function