new minimum skew script
corrections to have multiple indices for a given ratio