simulations: h now depends on n