man, this is hard stuff to read.  I think we need to use longer variable names, add some inline comments, or both.