Studies on synthesis and characterization of some novel heterocyelic compounds and their biological activity