Added email logic to the case where there are two emails as min.  It may not work right.  Put a note in to test with pry to see what i equals at that point