reduce nb ast