inheritance corrected