changes for setBytes()