changed set table method