removed unused lines
get current cursor position