finally fixed the whitespace bug