change search logic