hybrid converter code