schematic stripped down to include only the parts relevant here