adding author fetching code