removing extra newlines