debug reduce int sum problem, headache