added global span variables