getting low output voltage after adding a resistor