revised for capacitive loads