setting a cursor