[PREVIEW] improved the function for books preview