Synthesis, characterization and biological evaluation of some novel nitrogen based heterocyclic compounds