correct inheritance of MidUnit