first phase of encapsulation