account for when a dictionary only has one element