adapting simulations fo lagr package