fix indentation and trailing whitespaces