continue improve idpmatrix gen