changes match data structure and boxes to be stored and modified locally