removed unused search code