changed the position of the initialization of superclass