tweaked code for pubmed records