endline check