containing heterocyclic ring with at least one nitrogen atom as ring member