merge the code from plda
merge the code from plda