changed collapsed opps tranformation to collapsed opportunities to prevent the dataframe variable masking the function