implemented 2nd-order adjacencies