added random perturbation of coordinates 3