added circuit diagram