some fixed to the perturb function
fixing sloppiness