update deviceid for statistics