update line-detector