It would be better that you don't duplicate this code, but make a function with the code and call it twice.