reworked collatz