added getNewsfeed function