completes #1399 - nested model for patents