refactor getCheckedVersions