Synthesis of new series of pyrazole and imidazole derivatives and their antimicrobial activity