class inheritance checking updated.