cosmetics
formula handling for LDA