boxmodel implementation