add if condition before calling action_survey_resent