added comment to explain value before iterating the keys