ddiff to scalar