# 2d: bit logic