working on monte carlo