sum from the root to leaf