looping through the hash