moved the hashing to be part of the save