avoid modifying the main datum at repsert