fix intendation and trailing whitespace