add functionality of summarized data.
fix String warning bug.