cleaned replication of simulation