grid connectivity rules