finished import all books function