inheritence bug