coding protocol addition dealing with random data