fixing simulation
Merge pull request #246 from benjello/dev

fixing simulation