add lda_perfect