renamed details to place in callback and added some comments.⁄