improve get table by object