update structure for NB