spec for delta encoding