implemented (crude) hashing