Compensation by capacitors