hybrid converter - code