trying to resolve a diode issue