made capacitor voltage comparison inclusive