add variable span code