finished code analysis