clean up params successfully before update