simulation and reading