we need more meaningful "function" name like
```js
function psParser(out) {}
```
`parseProcessState` is also a good name.