implemented new hashing approach