added cursor reset