fixed formatting of code