keep searching while find the solution