getting rid of whitespace errors