localize key variable