fix indentation and trailing spaces