polish the sendgrid method