removing unnecessary whitespace