fixed trailing whitespace and mismatched indent