search complete working