the reaction involves a nucleophilic acyl substitution on an aldehyde, with the leaving group concurrently attacking another aldehyde in the second step. first, hydroxide attacks a carbonyl. the resulting tetrahedral intermediate then collapses, re-forming the carbonyl and transferring hydride to attack another carbonyl. in the final step of the reaction, the acid and alkoxide ions formed exchange a proton.