replaced bignum with long