added changes to respond to invite