working lineSearch