minor comp errors in lda