working on recursive connect with medium success