use pubmed escaping
move function
consolidating methods