reorder operations