swapped diagram