modularize feed_query