refactor code of advancedArticles