removing unneeded whitespace