minor changes to the lda