changed some of the code in the perturbation and added a neighborhood-operator