debugging
revise lda, main