rename var to key