replaced sha1 with sha2