seems to now be working for positive integers.

i'm not sure i believe this is actually working yet...