diodes added
added resistors