updated hashing mechanism to use md5