first pass to integrate max's slides