improve the feed adding function