simplifying version comparison