add scope to variableTable
move variableTable into base