simulation routine