corrected formatting of code