deleted unused code, abstracted a new stats class for easy carbon integration