added area check of cursor