cleaning up the schematic