almost have search implemented

almost