new procedure for simulation