compare two versions and transfer id