glass encapsulation