temp commit.
merged.
update calSetPoten, max and sum.