arrived in segmenting data for lda