add internal column index
fix internal column index with generator