quick initial simulation code