put do on same line
eliminate digits variable
dry up the test suite