fix error with variable naming