changes all references to 'grid' to 'box'