working sum, got rid of displaySpan