add the getting of statistics