making character classes free from duties of cursor position changes