keep NDB in scope