updating data stats