more flexible summarize metrix