linefinding now fully works!!