added wrapper around monte carlo function