modifications on bytearray vs arrays-of-bytearrays