fixed a couple of variable names