inheritance is confusing