the variables here are too abbreviated for readability: tc should be textContent, etc.