remove redundent typecasting for hashing functions