change model code trying to speed up simulation