global snippet