add rss parser function and refactoring code