Working on line detecting