changed bookDetail result to object