Synthesis characterization and biological activities of some nitrogen and sulphur containing heterocycles