added more simulation code