fixed whitespace checks