correction on scheme simulation, WORKING VERSION