extension to rational functions in simulations