matching versions with class