compelete search code