move the initial generation of $recent out of the loop; all tests still pass