swapped gradients and labels