now books can only be added if they fit in the query