compared copy of cg%[io]_bnd in find_neighbors