modify text mode