add rules for global variables