min-min for VM first version: right output