rename variables and add indicator when there are two members with the same name