Changed from popitem to interitems