integer perturbation logic.