merge prefixed grid structure