- remove logically dead code
- fix broken ptr logic with arrays
- remove or fix logically dead code blocks
- remove duplicate or otherwise unneccessary code