added updating of pivot table for creating feed