improve minimumStep