remove references to internal boxes