merge updateUniques() into original save()