add modifications for nested models