vars to reg keys