add `to_hash` to this line. or do `details.to_hash`