removed stats code