changed from class variable to local variable.