join event function