better detecting new sentence