added better line end detection