use helper function for target version checking