merged and inheritance