merge boxes to one box and implement nonce