some progress on line detection