this assignment is overwritten in every case, may as well just declare with type
var table: Plottable.Table;