rewrite code to change search method, to search books from author if search string was not found at first