mismatched types in adamSAMSave