adding extra constraint with search