fixed bug in splitting line by peak. Need to fix duplicate elimination