split main table into two