renamed newByteArray