fixed whitespace offbyone error