small changes to the stats module