byte[] replaced by ByteArray