adding initial pingTime to the plot function