update prev to the ObjectId