made changes for macsim