updated sampleNetwork functions