switched hashing algorithm to sha256