added circuit schematic diagram