Remove reference to old d variable