related events function and documentation