Heterocycles having N as heteroatom