fix  inheritance