NameError fixed