fixed style issues
2 lines before functions
removed trailing spaces