fixed methods after learning about variable scope in class wednesday