removed unused code
code formatting