get under cursor function