optimizing whitespaces