added option for summarizing over all the index values