function for the first part of Step 2 of the Operations script