     input = input.substring(input.indexOf('(')+1);
     byte z = input.substring(0, input.indexOf('(')).toInt();
     input = input.substring(input.indexOf('(')+1);
-    byte lay = input.substring(0, input.indexOf('(')).toInt();
+    byte key = input.substring(0, input.indexOf('(')).toInt();
     input = input.substring(input.indexOf('(')+1);
     byte id = input.substring(0, input.indexOf('(')).toInt();
     input = input.substring(input.indexOf('(')+1);
     byte type = input.toInt();
 
-    byte val = (lay << 4) | id;
+    byte val = (key << 4) | id;
 
     SetEEPROM(x, y, z, val, type);
     Serial.print("set key(");

  {
    if (type == 8)
    {
      byte switchLay = val & 0xf; // splits byte and get first 4 bits as number

      PressedKey = false;
      TempLayer = switchLay; // switches layer when key is held
      ReleaseAllKey();

    }

      {
        Keyboard.write(modMethod(GetEEPROM)(AdapterID)); // outputs key from EEPROM
      }

      if (switchID > 10)
      {
        // do nothing

      }
      else
      {

        TempLayer = KeyLayer; // resets layer back to default
      }

      ReleaseAllKey(); // DEPRECIATED END
    }
  }
