little refactoring
test sum of double