fixing broken code indents and formatting