updating cursor cleaning things up