question: What was used to create a new electromagnetic theory to reconcile the troubles with electromagnetic theory as it used to stand?
sentence: However, attempting to reconcile electromagnetic theory with two observations, the photoelectric effect, and the nonexistence of the ultraviolet catastrophe, proved troublesome.