--	add some feature to deal with first and last line new line