loop to reiterate conditionRename