removing debug and whitespace