move cursor handling vars