reordering rules to maybe make copying happen before the rule tha needs it