adding hashing function