made changes to search errors reported by ankit