switched to using the BigInteger library. Possibly a foolish idea.