nested model sim functions