add local_var as key for local vars