afixed swapping i and j