realign column count and index count