converted keys and values so we could get the value of a letter