adding addStackSymbol function to functions that need it