adds encapsulates matrix into field