renaming specifiedHash to optHash