adding working version of reduced deltas script