is there a difference in the logic in both cases ? I haven't checked the code locally to be able to compare both files easily