correct variable class inheritance