fix sum bug, and the container go a step further.