changed md5 method