invitation model working