process data for foreach binding