useless swaps removed