minor changes, just keeping it up-to-date, prototype of update_cursor() function