box pattern and documentation