correction to hash generation.