line-detector added