changed from sha256 to sha512