grid encapsulation