changed types in hashing

addresses issue #31