removing dot at EOL