reorder to only process the proper parts