almost there on delta encoding with mods