update sample for passing model state via temp data