cleaned up schematic