see above for the `.items()` suggestion. Otherwise doing this lookup inside the inner loop looks like you want to do extra work :)