new version, fixed schematic