finished first pass on nb