swapped inputs