be smarter with spans.