fixed some indentation and trailing whitespace