updated network util function and implemented histogramm plotter