corrected inheritance