updated addition/subtraction and beginning of creation of error stats