completed search implementation