small change regarding syntax of looping through a hash