make inheritance work properly