class inheritance correction