make it work in simulation