transformed to use neww search api