solution to table inheritance issue