minor change
Add code to renew dictionary when full