add unique variable names for the sake of the reshaped data
amend regex to be more effective
simpler check
check for unique instead of grabbing the first set of rows, simplify email message.