added serialization to the constraint byteBuffer