corrected cursor pointer