change algorithm in hashing func