added connect function for circuits