change md5 logic