swapped template