adding intra search functinoality