Use function for span here