fix deltaByteArray encoding     and   program  optimization