add code to send an invitation