for sp search logic