add another function, computer sum of num