fixed error with variable name