fixed logic in search Unit.. now i understand