fixed spacing and formatting of code