pos change global variable