added DIODE lib