fixed superclass so subclass inherits attributes properly