changed clean and take to have one map with sums