style improvements to NB