before switching order of adjoint and network stuff
switched around sections
removed todo that was done