move simulate code