rename a local var to common var