correct inheritance