removed old cursor code