Optical soliton in the presence of perturbations