added parameters in simulate functions