updated pattern library with grid rules