version pruning for majors and minors