refactor nabar 3x