removing some trailing whitespace