Design synthesis and evaluation of biological activities of nitrogen containing five and six membered heterocycles