getting the book in the right structure