start full simulation code