fixing some wire mistakes