dont need the begin-end contact hack anymore
bitmask based on adjacent sections