save mobile variable in g