correct file ordering and labeling