save before update, for test