so, you're returning `details` here.

Then, I'd create a local variable `details` in this function and take it as a result when calling this function