Fitting networks with a cancellation trick