fixed calling setTable to calling setTable