sets cursor for the DeleteEntity
removes redundant functions