why not a for each loop over the keyset?