remove unused wires