simulation finally works