storing global variable in the camera