a less exhaustive way to handle large test case such as 897654321