trying to fix broken LDA