create addBoundary method