changes to ema on diff