fixed return book function