separated testable add wire function