delete redundant cursor assignment