move adjacencies to proper place