avoid modifying dictionary during iteration over dictionary