- removed uneeded vars
- wrote psudo code for call stack trace