Part of the reason for his error was that Shapley did not realize that he was dealing with two types of pulsating varibles: RR Lyrae stars and Cepheids. Leavitt had determined the period-iuminosity law for Cepheids, but Shapley was measuring the galaxy’s size with RR Lyrae stars