changed sum value to 2