add warning about global variables