with simulating code