added search combinations logic