swap from source name to source id