integrated the functionality to check minimum version