added appendByteArray()