fix a warning
clarify splitSpan function
refactor & use reportSpans