inheritance and legitimacy