detect line