modification detectModification.R