fixed firstname and lda algorithms