refactor refuse invitation