fixed tableID and turned to tableNum