fix: bugs on sum
+ variance