final version

modify process for changed condition