Question: Well, I have a dictionary that stores informations extracted from a PDF file.
Like this:

> 
> { 'B) NAME:': 'Jair', 'H) AGE: ': ' 25', 'J) Gender': 'Male'}
> 
> 
> 

I'm trying to 'clean' this dictionary by excluding the strings "b)", "h)" "j)" that came from PDF using the following code:

```
for k in mydict:
  mydict[(k.split(')')[1])] = mydict.pop(k)

```

But this code isn't working: "IndexError: list index out of range"

I cannot figure out why, cuz when I run the code with print instead the pop everything goes well:

```
for k in mydict:
        print(k.split(')')[1])

```

What should I change?

Answer: 
`user` is not an existing property on `req` object. You can make your own typings for `req` object by creating a `.d.ts` file on your project, for example, create a `express.d.ts` file and it will contains:

```
declare namespace Express {
   export interface Request {
       user: SomeType
   }
}

```

Demo: <https://repl.it/repls/OldlaceWhoppingComputationalscience>

Try deleting the `express.d.ts` and the error will appears again.
```
declare global {
  namespace Express {
    interface Request {
      user?: UserPayload;
    }
  }
}

```

this is an example of UserPaylaod

```
  interface UserPayload {
     id: string;
     email: string;
   }

```