use method to get version name and set it.