begin cursor position saving (not works)