added func to get books