generate min version