adding some function to separate the simulation of Grid and the others