v2.0 update lda, make lda independent