remove some unnecessary whitespace