removed excess whitespace and unused function