add new flag in findandmodify so it will return the new object