why is the span defined here instead of in the template?