changed from BigInteger to byte[]