add nested model
bugfix