starting hashing function