working on boundary type document