added span formatting