tested some more on simulate function