fixed howler of a bug in getStats, split out calcStats