Updated Top metric

incorporated comments from earlier pull request. 
preferable to just do 
for key, value in blah: