revert to original search partial code