Removed unused String variable `key`. Local variable `key2` renamed to `key`