search initially working