initialize on parent span instead of element