added allOf of inherticance