schematic and layout adapted