changing back chararray to bytearray as this change is not needed if
sequence files are not involved