search script updated