add inherit function!