reconstruct and add packet loss statistic function