changed similar to goodreads-api and added similar function