changing pair wise