ise duplicate line when it is the last line