show book detail with min function