declare global variable in the right context.