added a compare version number helper method