everything but the monte carlo problem