code analysis: proper dispose
code formatting