in reply to the last added element of a hash

Rewrite the loop body for the obvious reasons, of course.