flip perturbation is working