check in bn.cpp