missed a variable, and removed console debug output