; and (B) by amending subparagraph (D) to read as follows: (D) Subject to subsections (aa) and (bb), if the deceased individual (on the basis of whose wages and self-employment income a widow or surviving divorced wife is entitled to widow's insurance benefits under this subsection) was, at any time, entitled to an old-age insurance benefit which was reduced by reason of the application of subsection (q), the widow's insurance benefit of such widow or surviving divorced wife for any month shall not exceed the greater of— (i) amount of the old-age insurance benefit to which such deceased individual would have been entitled (after application of subsection (q)) for such month if such individual were still living and section 215(f)(5), 215(f)(6), or 215(f)(9)(B) were applied, where applicable; and (ii) 82 1/2 percent of the primary insurance amount (as determined without regard to subparagraph (C)) of such deceased individual. ; (2) in subsection (f)(2)— (A) in subparagraph (A), by inserting subsection (aa), subsection (bb), after subsection (q), ; and (B) by amending subparagraph (D) to read as follows: (D) Subject to subsections (aa) and (bb), if the deceased individual (on the basis of whose wages and self-employment income a widower or surviving divorced husband is entitled to widower's insurance benefits under this subsection) was, at any time, entitled to an old-age insurance benefit which was reduced by reason of the application of subsection (q), the widower's insurance benefit of such widower or surviving divorced husband for any month shall not exceed the greater of— (i) amount of the old-age insurance benefit to which such deceased individual would have been entitled (after application of subsection (q)) for such month if such individual were still living and section 215(f)(5), 215(f)(6), or 215(f)(9)(B) were applied, where applicable; and (ii) 82 1/2 percent of the primary insurance amount (as determined without regard to subparagraph (C)) of such deceased individual.