idpmatrix cleaning