J: working on global variables